/**
 * 
 */
package com.conn.service.socket.resp;

import com.conn.service.socket.codec.ProtocolBuilder;

/**
 * @author lushouzhi
 *
 */
public abstract class ClientResponse {
	
	protected ProtocolBuilder builder=new ProtocolBuilder();
	
	public abstract short getCmd();
	
	public abstract void sendClientData();
	
	public Object toClient(){
		builder.clear();
		builder.setCmd(getCmd());
		sendClientData();
		return builder.build();
	}
	
}
